cc.Class({
    extends: cc.Component,

    properties: {

    },

    onLoad () {

    },

    init(data) {
        this.node.getComponent(cc.Sprite).loadImage(data.appIcon);
        this.node.find('price', cc.Label).string = data.price;
        var d = {
            title: data.name,
            desc: data.content,
            icon: data.appIcon,
            priceBuy: data.price,
            priceIcon: data.price
        }
        this.node.on('click', () => cc.Popup.show('public/ShopInfoPop', pop => pop.init(d)));
    }
});
